/**
 * @ author: 汪孟苹
 */
define(["jquery","template",
	"ac/app/cacheSpecialNurse.servers",
	"ac/template/cacheSpecialNurse.tpl"],
	function($,template,$specialNurseServers,tpl){
	var ui = {};

	/**
	 * taskList
	 */
	var drawTabs = function(data){
		return template("tpl_specialNurse_tabs",data);
	}
	ui.tabsInit = function(options){
		$("#"+options.id).html(tpl.initTabs());
		var h = drawTabs(options);
		$("#"+options.id).html(h);
	}

	/**
	 * 离线问卷记录
	 */
	var drawRight = function(data){
		return template("tpl_specialNurse_right",data);
	}
	ui.right = function(options){
		$("#"+options.id).html(tpl.initRight());
		var h = drawRight($specialNurseServers.right(options));
		$("#"+options.id).html(h);
	}

	return ui;
});